<!doctype html>
<html>
    <head>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">    
        <style> html{font-size:100px;}</style>
        <title><?php echo $this->page_title; ?></title>
        <meta name="keywords" content="<?php echo $this->_meta_keywords; ?>" />
        <meta name="description" content="<?php echo $this->_meta_description; ?>"  />
        <link rel="shortcut icon" href="<?php echo G_STATIC_URL; ?>/aomas/img/common/favicon.ico?v=<?php echo G_VERSION_BUILD; ?>">

        <script> 
            //屏幕适应 
            (function (win, doc) {
                if (!win.addEventListener) return;
                var html = document.documentElement;
                function setFont() {
                    var html = document.documentElement;
                    var k = 375;
                    html.style.fontSize = html.clientWidth / k * 100 + "px";
                }
                setFont();
                setTimeout(function () {
                    setFont();
                }, 300);
                doc.addEventListener('DOMContentLoaded', setFont, false);
                win.addEventListener('resize', setFont, false);
                win.addEventListener('load', setFont, false);
            })(window, document);
        </script>
        <style>
            body{
                font-size: 0.54rem;
            } 
        </style>

<script type="text/javascript">
    var _<?php echo $post_hash_var_name; ?>="<?php echo new_post_hash(); ?>";
    var G_POST_HASH=_<?php echo $post_hash_var_name; ?>;
    var G_INDEX_SCRIPT = "<?php if (get_setting('url_rewrite_enable') != 'Y') echo G_INDEX_SCRIPT; ?>";
    var G_SITE_NAME = "<?php echo addcslashes(get_setting('site_name'), '\"'); ?>";
    var G_BASE_URL = "<?php echo base_url(); if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(G_INDEX_SCRIPT, '/'); } ?>";
    var G_STATIC_URL = "<?php echo G_STATIC_URL; ?>";
    var G_UPLOAD_URL = "<?php echo get_setting('upload_url'); ?>";
    var G_USER_ID = "<?php echo $this->user_id; ?>";
    var G_USER_NAME = "<?php echo addcslashes($this->user_info['user_name'], '\"'); ?>";
    var G_UPLOAD_ENABLE = "<?php echo get_setting('upload_enable'); ?>";
    var G_UNREAD_NOTIFICATION = 0;
    var G_NOTIFICATION_INTERVAL = <?php echo intval(get_setting('unread_flush_interval')) * 1000; ?>;
    var G_CAN_CREATE_TOPIC = "<?php echo $this->user_info['permission']['create_topic']; ?>";
    var G_ADVANCED_EDITOR_ENABLE = "<?php echo get_setting('advanced_editor_enable'); ?>";

    <?php if (human_valid('question_valid_hour')) { ?>
        var G_QUICK_PUBLISH_HUMAN_VALID = true;
    <?php } ?>
</script>


<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    </head>
    <body>
        <!-- 头部全局 -->

        <div class="navbar navbar-default header-nav m-nav-container" style="background:#f9a900">
            <div class="container-fluid nav-fluid">
                <div class="header-container">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#nav-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                        <a class="navbar-brand nav-lg" href="#">
                            <img src="" alt="">
                        </a>
                    </div>
                
                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse m-nav" id="nav-1">
                        <ul class="m-nav-list">
                            <li><a href="/">首页</a></li>
                            <!-- <li><a href="#">企业团购</a></li> -->
                            <!-- <li><a href="#">官方论坛</a></li> -->
                            <!-- <li><a href="#">服务</a></li> -->
                            <li><a href="/product/all/">全部商品</a></li>
                            <li><a href="/cart">收藏夹</a></li>
                            <li><a href="/m/explore/">官方论坛</a></li>

                            <?php if (!$this->user_id) { ?>

                            <li><a href="/m/login/">登录</a></li>
                            <li><a href="/m/register/">注册</a></li>

                            <?php }else{ ?>

                            <?php }?>
                        </ul>

                    </div><!-- /.navbar-collapse -->
                </div>
            </div><!-- /.container-fluid -->
        </div>

